﻿@{
    ViewBag.Title = "Home Page";
}
模拟客户端<br />
@Html.Raw((ViewData["msg"]??string.Empty).ToString())
@using (Html.BeginForm("upfile", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
 { 

    <input id="file1" type="file" name="file1" />
    <img src="@Request.QueryString["img"]"/>
 }
<script type="text/javascript">
    $(document).ready(function () {
        $("#file1").jqUploader({
            background: "FFFFDF",
            barColor: "dddddd",
            allowedExt: "*.avi; *.jpg; *.jpeg; *.png",
            allowedExtDescr: "请上面上avi,jpg,png类型的文件",
            endMessage: "上传成功",
            validFileMessage: '请单击上传按钮',
            hideSubmit: false,
            //  afterScript: "",
            buttonText: "上传"
        });
    });
</script>
